<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录页面</title>
</head>
<body>
<h2>欢迎登录传智健康</h2>
<div th:if="${param.error}" style="color:red">用户名或密码错误！</div>
<form th:action="@{/login}" method="post">
    <input type="text" name="username" placeholder="用户名" required><br>
    <input type="password" name="password" placeholder="密码" required><br>
    <button type="submit">登录</button>
</form>
</body>
</html>